<?php
namespace App\Transformers;

use App\Models\User;

class SummaryTransformer extends Transformer
{
    /**
     * @param User $user
     * @return array
     */
    public function transform(User $user)
    {
        return [
            "user_id" => $user->user_id,
            "name" => $user->name,
            "total_attendance" => $user->total_attendance,
            "total_zue" => $user->total_zue,
            "total_yinggai" => $user->total_yinggai,
            "total_qingjia" => $user->total_qingjia,
            "total_waichu" => $user->total_waichu,
            "fgz_ts" => $user->fgz_ts,
            "fgz_zue" => $user->fgz_zue,
            "gzsc_sj" => $user->gzsc_sj,
            "gzsc_yg" => $user->gzsc_yg,
            "gzsc_qj" => $user->gzsc_qj,
            "gzsc_wc" => $user->gzsc_wc,
            "shiyingbi" => $user->shiyingbi,
            "total_buzu" => $user->total_buzu,
            "total_geying" => $user->total_geying,
            "shigeyingbi" => $user->shigeyingbi,
            "fgz_rj" => $user->fgz_rj,
            "gzsc_sjb" => $user->gzsc_sjb,
            "gzsc_gy" => $user->gzsc_gy,
            "gzsc_sjgyb" => $user->gzsc_sjgyb,
            "gzsc_rj" => $user->gzsc_rj,
            "sxbsj_jd" => $user->sxbsj_jd,
            "sxbsj_jl" => $user->sxbsj_jl,
            "sxbsj_zz" => $user->sxbsj_zz,
            "sxbsj_zw" => $user->sxbsj_zw,
            "taxi" => $user->taix
        ];
    }
}
